
//
// 101019 - AH - Created.
// 101111 - AH - Added missing java doc. 
//

package org.soekrat.engine.network;

import org.jgrapht.EdgeFactory;

/**
 * <p>
 *   {@link EdgeFactory} that created
 *   {@link NetworkEdge}s between 
 *   {@link NetworkNode}s in a
 *   {@link Network}.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC)
 */
public final class NetworkEdgeFactory 
  implements EdgeFactory<NetworkNode, NetworkEdge> 
{
  /**
   * <p>
   *   Constructor.
   * </p>
   */
  public NetworkEdgeFactory(){}
  
  // Specified in EdgeFactory<Node, NetworkEdge>
  public NetworkEdge createEdge(NetworkNode sourceVertex, NetworkNode targetVertex) 
  {
    return new NetworkEdge(sourceVertex, targetVertex);
  }

}
